package org.example.stream.demo;

import org.example.stream.demo.entity.User;

import java.util.Arrays;
import java.util.List;

public class ToArrayMain {
    public static void main(String[] args) {
        List<User> list = UserBuilder.bindings();

        Object[] array = list.stream().map(User::getId).toArray();

        Arrays.stream(array).forEach(System.out::println);
    }
}
